<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			// 解构赋值
			let [a,b,c] = [1,2,3];
			console.log(a,b,c);
			let [{d,e},[f,g],num,str] = [{d:4,e:55},[9,5],8,'bbb'];
			console.log(d,e,f,g,num,str);
			let [json,arr,strr] = [{a:2,b:11},[4,5],'aaa'];
			console.log(json,arr,strr);
			// 左右两边必须是一个东西
			// let {m,n} = {1,2};
			// console.log(m,n);
			// 声明和赋值不能分开
			let [aa,bb];
			[aa,bb] = [22,33];
			console.log(aa,bb);
		</script>
	</head>
	<body>
	</body>
</html>
